package com.lh.biz.dto.in.user;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import com.lh.biz.dto.BaseInDto;

/**
 * @author liuhui
 * @version 1.0
 * @date 2013-4-29 下午10:00:25
 */
public class RegisteInDto extends BaseInDto {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2057565137974259065L;

	@NotBlank
	@Size(min=3,max=20)
	private String username;
	@Email
	private String email;
	@NotBlank
	@Size(min=6,max=20)
	private String password;
	@NotBlank
	@Size(min=6,max=20)
	private String password2;
	@NotBlank
	@Size(max=4,min=4)
	private String validCode;
	private String remoteAddress;
	private Long cartId;
	
	
	public Long getCartId() {
		return cartId;
	}
	public void setCartId(Long cartId) {
		this.cartId = cartId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword2() {
		return password2;
	}
	public void setPassword2(String password2) {
		this.password2 = password2;
	}
	public String getValidCode() {
		return validCode;
	}
	public void setValidCode(String validCode) {
		this.validCode = validCode;
	}
	public String getRemoteAddress() {
		return remoteAddress;
	}
	public void setRemoteAddress(String remoteAddress) {
		this.remoteAddress = remoteAddress;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	
}
